package com.penghk.configserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * http请求地址和资源文件映射如下:

 请求 ： /{application}/{profile}[/{label}]

 映射 ：
 /{application}-{profile}.yml
 /{label}/{application}-{profile}.yml
 /{application}-{profile}.properties
 /{label}/{application}-{profile}.properties

 eg : http://localhost:8888/config-client/dev/master
   --> https://github.com/forezp/SpringcloudConfig/respo/config-client-dev.properties
 */
@SpringBootApplication
@EnableConfigServer
//@EnableEureka
public class ConfigServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(ConfigServerApplication.class, args);
	}
}
